#include <stdio.h>
#define N 40
void main(){
	int s[11]={0};
	int i=0,score=0;
	for (i=0;i<N;i++){
		scanf("%d", &score);
		s[score]++;
	}
	printf("Grade Count Histogram\n");
	for (i=1;i<=10;i++){
		printf("%-2d        %-2d   ",i,s[i]);
		int j=0;
		for (j=0;j<s[i];j++){
			printf("*");
		}
		printf("\n");
	}
}
